//
//  HMpdfManager.h
//  linktop_HealthDetector
//
//  Created by Linktop on 2021/11/9.
//  Copyright © 2021 linktop. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "HMPdfShareProtoal.h"
#import "LTRingEcgDrawLineView.h"

//#import "ECGModel.h"
//#import "LTHmEcgDrawLineView.h"

NS_ASSUME_NONNULL_BEGIN
//@class MeasureUser;
@class DBEcgRecord;

typedef NS_ENUM(NSUInteger, DETAIL_HIS_TYPE) {
//    DETAIL_HIS_BLOOD_PRESSURE = 1, // 血压
    DETAIL_HIS_HEARTRATE = 2, // 心率
    DETAIL_HIS_THER = 3, // 体温
//    DETAIL_HIS_OXY = 4, // 血样
//    DETAIL_HIS_ECG = 5, // ecg
//    DETAIL_HIS_GLUCOSE, //血糖
};


@interface HMpdfManager : NSObject

-(void)setHorizonalSpeed:(HORIZONTAL_SPEED)speedType VertialGain:(VERTIAL_GAIN)vGain Frequency:(int)frequency Direction:(int)direction;



//-(NSString *)getFloaderPath;
- (UIImage *)makeImageWithView:(UIView *)view withSize:(CGSize)size;

//-(UIView *)createPdfHead:(NSString *)name Birthday:(NSDate *)birthDate SourceText:(NSString *)sourceString;
-(UIView *)createTableTitles:(NSArray<NSString *> *)titles Size:(CGRect)frame;



/// 直接在pdf画图
/// @param ecgModel
/// @param pointArray
/// @param user
/// @param cmpBlk
-(void)createEcgSharePdfDrawInPdf:(DBEcgRecord *)ecgModel
                        Frequency:(int)frequency
                           Points:(NSArray<NSNumber *> *)pointArray
                             User:(NSString *)user
                         Birthday:(NSDate *)birthDate
                              Cmp:(void(^)(NSURL *pdfUrl))cmpBlk;
@end

NS_ASSUME_NONNULL_END
